//操作数据表模块
var mongoose = require('mongoose');
//定义数据表结构
var Schema = mongoose.Schema;
var furSchema = new Schema({//实例化一张具体的明星数据表
    "id": Number,
    "bom": String,
    "name": String,
    "category": String,
    "picFront": String,
    "picLeft": String,
    "linkYouzan": String,
    "skuCols": Number,
    "upYear": String,
    "shortDesc": String,    
    "scenPics": String,
    "fnjiType":Number,
    "showOrder": Number,
    "nameEn": String,
    "skuProductLine": String
})
var furModel = mongoose.model('furniture',furSchema);
//创建一个starModel数据表模型,操作(增删改查)对应schema数据表的模型对象
module.exports = furModel;//对外导出starModel数据表模型
